import request from "@/utils/request";


// 获取所有系统用户列表
export const queryAllWelfare = (page, pageSize,title) =>
    request.get('/welfare/search', {
        params: {
            page, pageSize,title
        }
    }).then((result)=>result.data);


// 添加
export const addWelfare = (welfare) =>
    request.post('/welfare/add', welfare).then((result)=>result.data);
// 获取所有系统用户列表
export const updateWelfare = (welfare) =>
    request.put('/welfare/update', welfare).then((result)=>result.data);

// 删除
export const deleteWelfare = (ids) =>
    request.put('/welfare/delete', ids).then((result)=>result.data);